package itsm.isperp.module.repository.bpm.act;

import itsm.isperp.framework.data.domain.DataRequest;
import itsm.isperp.framework.data.domain.DataResponse;
import itsm.isperp.module.entity.bpm.act.ActRuTask;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 
 * 流程任务数据仓库
 * 
 * @author lizx
 * @date 2013-7-11O
 * 
 */
@Repository
public interface ActRuTaskMapper {

	/**
	 * 
	 * @param req
	 * @return
	 */
	DataResponse<ActRuTask> findTaskListByRequest(DataRequest req);

	/**
	 * 
	 * @param req
	 * @return
	 */
	DataResponse<ActRuTask> findTaskListByUsernameAndRequest(
			@Param("username") String username, DataRequest req);

	Long findTaskCountByUsernameAndRequest(@Param("username") String username);

}
